package com.example.demo.Service;

import cn.hutool.json.JSONObject;
import com.example.demo.Entity.Comment;
import com.example.demo.Mapper.CommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentService {
    public void insertComment(Comment comment);
    public List<JSONObject> selectById(Integer noteId);
    public void deleteById(Integer id);
    public void update(Comment newComment);
    public List<JSONObject> selectByUserId(Integer userId);
    public void upvote(Integer commId);
    public void cancelUpvote(Integer commId);
    public List<JSONObject> getCommentNum(Integer userId);
}
